<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="head.html"/>
</head>
<body>
    <div id="head"><h1>Renndatenbank</h1></div>
    <jsp:include page="menu.html"/>
    <div id="content">
        <h2><c:out value="${title}"/></h2>
        <p><c:out value="${message}"/></p>
        <table class="listing">
            <colgroup>
                <col/>
                <col/>
                <col/>
                <col/>
            </colgroup>
            <thead>
                <tr>
                    <th></th>
                    <th>Saison</th>
                    <th>Renndatum</th>
                    <th>Rennort</th>
                    <th>Rennbezeichnung</th>
                </tr>
            </thead>
            <tbody>
                <c:forEach items="${rennen}" var="rennen">
                    <tr>
                        <td>
                            <a href="StopRennen.s?id=<c:out value="${rennen.id}"/>">
                                <img src="images/button_drop.png" alt="Icon - Lösche Rennen"/>
                        </a>
                        <td><c:out value="${rennen.saison}"/></td>  
                        <td><c:out value="${rennen.renndatum}"/></td>
                        <td><c:out value="${rennen.rennort}"/></td>
                        <td><c:out value="${rennen.rennbezeichnung}"/></td>
<%--                         <td><c:out value="${rennen.busplatz}"/></td> --%>
                    </tr>
                </c:forEach>  
            </tbody>
        </table>
    </div>
</body>
</html>   